package diwuzhou;

public class Coursemain {
    //创建数组
    public static void main(String[] args) {
        String[] courseID={"419001","419002","419003","419004","419005"};
        String[] courseName={"c语言程序设计","数据结构","计算机组成原理","JAVA语言程序设计","计算机操作系统"};
        int[] credit={4,4,3,4,4};
        String[] teacher={"张三","李四","王五","赵六","钱七"};
        System.out.println("课程代码 课程名称       课程学分        任课老师");
        int i=0;
        for(i=0;i<courseID.length;i++) {
            System.out.printf("%s\t %-10s\t %-10d\t %s\t", courseID[i], courseName[i], credit[i], teacher[i]);
            System.out.println();
        }
    }

}
